package com.hotel.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hotel.entity.CheckOut;

public interface CheckOutMapper {
    int deleteByPrimaryKey(Integer checkoutId);

    int insert(CheckOut record);

    int insertSelective(CheckOut record);

    CheckOut selectByPrimaryKey(Integer checkoutId);

    int updateByPrimaryKeySelective(CheckOut record);

    int updateByPrimaryKeyWithBLOBs(CheckOut record);

    int updateByPrimaryKey(CheckOut record);
    
    /**
     * 按月度查询入住统计
     * @param month
     * @return
     */
    List<CheckOut> findMonthStatements(@Param("year")String year,@Param("month")String month);
    
    /**
     * 按年度查询入住统计
     * @param year
     * @return
     */
    List<CheckOut> findAnnualStatements(@Param("year")String year);
}